// 域名
export function getDomain () {
  let domain = ""
  switch (process.env.SPA_ENV) {
    case "dev":
      domain = "http://localhost:8080/"
      break
    case "test": // 测试环境域名
      domain = "https://test.com"
      break
    case "preprod":
    case "prod":
      domain = "https://release.com"
      break
    // No Default
  }
  return domain
}
